using System;

namespace JT808Protocol.Models.BodyParserStrategy.Location.LocationAddition
{
    /// <summary>
    /// 博实杰扩展信息协议
    /// </summary>
    public class LaBsjExtensionData_0xEB : ILocationAddition
    {
        public override EnumLocationAddition AdditionID => (EnumLocationAddition)0xEB;

        public override ILocationAddition ReadEntity(ReadOnlySpan<byte> source, int startIndex)
        {
            DataLength = (byte)(source[startIndex + 1] + 2);

            return this;
        }
    }
}